import _00GraphFuc as gf
import _00GraphTreeFuc as gt

#生成树定义
V={0,1,2,3,4,5,6,7}
E={(7,3),(1,3),(1,6),(3,7),(2,5),(0,3),(5,1),(4,0),(6,7),(5,0),(0,4),(2,2),(6,4),(5,4),(2,6),(3,2),(7,1),
   (6,0),(1,4),(2,3),(1,0),(6,5),(5,3),(0,1),(3,5),(7,0),(4,6),(4,3),(3,4),(0,2)}
Vt={0,1,2,3,4,5,6,7}
Et={(7,3),(1,3),(1,6),(2,6),(5,1),(0,3),(4,0)}
gf.drawgraph(E)
gf.drawgraph(Et)
tv=len(V)==len(Vt)
print(tv)